import {get,post} from './request'

export async function LoginData (data) {
    const res = await post('/api/user/login',data)
    return res.data
}

export async function HotList () {
    const res = await get('/api/shop/hot-list')
    return res.data
}

export async function shopDetail (id) {
    const res = await get('/api/shop/'+id)
    return res.data
}

export async function productsDetail (id, type) {
    const res = await get(`/api/shop/${id}/products?tab=${type}`)
    return res.data
}
